﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" CodeBehind="PrintJuanCatagoryView.aspx.cs" Inherits="Web.Views.ArchiveFlowView.PrintJuanCatagoryView" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../../Javascript/UserControls.js"></script>
    <script src="../../Scripts/WShellHelper.js?ver=1" type="text/javascript"></script>
    <script language="javascript">        //注册表的网页打印路径

        //设置默认的页眉页脚
        function SetupPage() {
            try {


                WShellHelper.setPrintHeader("");
                WShellHelper.setPrintFooter("");
                //WShellHelper.setPrintMarginBottom("0.39"); //0.39相当于把页面设置里面的边距设置为10
                //WShellHelper.setPrintMarginLeft("0.39");
                //WShellHelper.setPrintMarginRight("0.39");
                //WShellHelper.setPrintMarginTop("0.39");
            }
            catch (e) {
                alert(e.message);
            }
        }

        function printdiv(printpage) {

            WShellHelper.setPrintOrientation(false);

            setTimeout(function () {
                SetupPage();
                var headstr = "<html><head><title></title></head><body>";
                var footstr = "</body></html>";
                var newstr = document.getElementById(printpage).innerHTML;
                var oldstr = document.body.innerHTML;
                newstr = newstr.replace("打印卷内目录", "");
                document.body.innerHTML = headstr + newstr + footstr;
                window.print();
                document.body.innerHTML = oldstr;
                return false;
            }, 500);


        }
    </script>
    <style type="text/css">
    
    .table_01
    {
        border:1px solid black;
        border-collapse:collapse;
    }  
    
    .table_01 tr
    {
        height:75px;
    }  
    
    .table_01 thead tr th
    {
        height:100px;
    }  
        
    .table_01 th
    {
    	font-size:20px;
    	font-weight:normal;
    	border:1px solid black;
    	border-collapse:collapse;
    }
    .table_01 td
    {
    	font-size:16px;
    	font-weight:normal;
    	border:1px solid black;
    }
    	
    h3
    {
        color:Black;
        margin-bottom:30px;
        line-height:32px;
    }
        
    .cellPadding
    {
        padding-left:5px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="toolbar2">
        <button type="button" class="sexybutton" id="btnBack" onclick="javascript:history.go(-1);">
            <span><span><span class="transfer">返回</span></span></span></button>
    </div>
</asp:Content>
